﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<CarBooker.Models.BookedCar>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ManageBookings
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Manage Bookings</h2>
    <div class="message"><%= Html.Encode(ViewData["Message"]) %></div>

<% using (Html.BeginForm("Create","Booking",FormMethod.Post )) { %>
        <div>
            <fieldset>
                <legend>Select Parameters</legend>
                <div class="editor-field">
                    <%= Html.EditorForModel() %>
                </div> 
                <p>
                    <input type="submit" value="Add Booking" />
                </p>
            </fieldset>
        </div>
    <% } %>
    
</asp:Content>
